//
//  SwitchDoubleCell.m
//  Estate
//
//  Created by heyong on 16/6/16.
//  Copyright © 2016年 ttsx. All rights reserved.
//

#import "SwitchDoubleCell.h"

@implementation SwitchDoubleCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.selectionStyle=UITableViewCellSelectionStyleNone;
    self.view1.backgroundColor=[UIColor colorWithRed:0.89 green:0.89 blue:0.90 alpha:1.00];
    self.title1.textColor=UIColorFromRGB(0x797979);
    self.title2.textColor=UIColorFromRGB(0x797979);
    self.switch_1.transform=CGAffineTransformMakeScale(0.7, 0.7);
    self.switch_2.transform=CGAffineTransformMakeScale(0.7, 0.7);
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (IBAction)swichValue_1:(UISwitch *)sender {
    if(self.sWitch1Block){
        self.sWitch1Block(sender);
    }
}

- (IBAction)switchValue_2:(UISwitch *)sender {
    if(self.sWitch2Block){
        self.sWitch2Block(sender);
    }
}
@end
